<HTML><HEAD><TITLE>tent_set_all(?Vars, +TV)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(tentative)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>tent_set_all(?Vars, +TV)</H1>
Set the tentative values of all variables within Vars to the same value TV
<DL>
<DT><EM>Vars</EM></DT>
<DD>A term
</DD>
<DT><EM>TV</EM></DT>
<DD>A (nonvar) term
</DD>
</DL>
<H2>Description</H2>

	Assign the tentative value TV to each variable in the term Vars.
	Vars would typically be a list (or array) of variables.
    
<H3>Modes and Determinism</H3><UL>
<LI>tent_set_all(?, +) is det
</UL>
<H2>Examples</H2>
<PRE>
    ?- tent_set_all([A, B, C], 3).
    A = A{3 -&gt; 0}
    B = B{3 -&gt; 0}
    C = C{3 -&gt; 0}
    Yes (0.00s cpu)

    ?- length(L, 5), tent_set_all(L, 3).
    L = [Xi{3 -&gt; 0}, Xi{3 -&gt; 0}, Xi{3 -&gt; 0}, Xi{3 -&gt; 0}, Xi{3 -&gt; 0}]
    Yes (0.00s cpu)
    </PRE>
<H2>See Also</H2>
<A HREF="../../lib/tentative/tent_set-2.html">tent_set / 2</A>, <A HREF="../../lib/tentative/tent_set_random-2.html">tent_set_random / 2</A>
</BODY></HTML>
